package com.michael.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

@Repository
public interface TOrderDao extends JpaRepository<TOrder,Long>, Serializable {

    @Query(nativeQuery = true ,value = "select * from t_order where order_id = ?1")
    TOrder find(Long a);
}
